package app;

import java.io.OutputStream;

public class ComWriter {

	private OutputStream	out;

	public ComWriter( OutputStream outputstream ) {
		out = outputstream;
	}

	/**
	 * Writes an array of bytes to this port
	 * 
	 * @param data
	 */
	public void writeBytes( byte[] data ) {

		try {
			out.write( data );
			out.flush( );
		} catch ( Exception e ) {
			System.out.println( "[ComWriter] Error writing to COM port" );
		}
	}
}
